﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1.Services
{
    public class FreeSqlService
    {
        public IFreeSql From { get; set; }


        public IFreeSql Bluetooth { get; set; }
        public FreeSqlService()
        {
            From = new FreeSql.FreeSqlBuilder()
              .UseConnectionString(FreeSql.DataType.SqlServer, @"data source=192.168.100.13;initial catalog=FrontEnd4.0From;pooling=true;max pool size=2;User Id=pcmsadmin;Password=111111_a")
              .Build();

            Bluetooth = new FreeSql.FreeSqlBuilder()
              .UseConnectionString(FreeSql.DataType.SqlServer, @"data source=.;initial catalog=BluetoothResistance;pooling=true;max pool size=2;User Id=pcmsadmin;Password=111111_a")
              .Build();

        }


    }
}
